<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="col1Menu" />
<meta name="nav" content="2" />
<meta name="acc" content="report" />
<title>事故处理信息</title>
<script type="text/javascript">
	$(document).ready(
			function() {
				$("input[name='dealdate']").addClass("Wate").bind("click",
						function() {
							WdatePicker({
								skin : 'whyGreen',
								minDate : '1900-10-01',
								maxDate : '%y-%M-%d',
								dateFmt : 'yyyy-MM-dd'
							});
						});
			});
</script>
</head>
<body>
<div id="heading" class="accidentreport"><h6>事故处理</h6></div>
<form action="accidentreport!saveAccidentReport.action" method="post" id="inputForm"
	class="yform" enctype="multipart/form-data"><input type="hidden"
	id="id" name="id" value="${id}">
<div>
<fieldset >
	<legend>事故信息</legend>
<table class="noborder">
	<tr class="type-text">
		<td>项目名称:</td>
		<td>${projname}</td>
		<td>事故类型</td>
		<td><pt:code category="3013" name="type" code="${type}"></pt:code>
		</td>
	</tr>
	<tr class="type-text">
		<td>发生时间:</td>
		<td><fmt:formatDate value="${happendate}" pattern="yyyy年MM月dd日" /></td>
		<td>发生地点:</td>
		<td>${happenplace}</td>
	</tr>

	<tr class="type-text">
		<td>死亡人数:</td>
		<td>${deaths}</td>
		<td>损失:</td>
		<td>${loss}</td>
	</tr>
	<tr class="type-text">
		<td>简要经过:</td>
		<td colspan="3">${content}</td>
	</tr>
	<tr class="type-text">
		<td>造成工程损坏情况:</td>
		<td colspan="3">${damage}</td>
	</tr>
	<tr class="type-text">
		<td>原因初步判断:</td>
		<td colspan="3">${reason}</td>
	</tr>
	<tr class="type-text">
		<td>事故报告单位:</td>
		<td colspan="3">${reportorg}</td>
	</tr>
	<tr class="type-text">
		<td>事故采取措施:</td>
		<td colspan="3">${measure}</td>
	</tr>
	<tr class="type-text">
		<td>备注:</td>
		<td colspan="3"><textarea name="remark" id="remark"
			readonly="readonly">${remark}</textarea></td>
	</tr>
</table>
</fieldset>
<fieldset >
<legend>处理措施</legend>
<table>
	<tr>
		<td>是否处理</td>
		<td><s:select list="{'是','否'}" name="isdeal"></s:select> </td>
		<td>处理时间</td>
		<td><input id="dealdate" name="dealdate" value="<fmt:formatDate value="${dealdate}" pattern="yyyy-MM-dd" />"/></td>
	</tr>
	<tr>
		<td>处理措施</td>
		<td colspan="3"><input name="dealcontent" type="text"
			value="${dealcontent}"/></td>
	</tr>
	<tr class="type-text">
		<td>附件</td>
		<td colspan="3"><input type="file"
			name="acciReportAttachment.upfile"></td>
	</tr>
	<c:if test="${not empty dealfile.id}">
		<tr id="attachment">
			<td>已有附件</td>
			<td><a title="下载" href="${ctx}/servlet/annex?id=${dealfile.id}">${dealfile.upfileFileName}</a>
			<a href="javascript:deleteAttachment('${dealfile.id}')"
				class="delete">删除</a></td>
		</tr>
	</c:if>
</table>
</fieldset>
</div>
<div class="type-button"><input class="button" type="submit"
	class="submit" value="保存" />&nbsp;</div>
</form>
</body>
</html>